@import "base/fix";
@import "base/public";
@import "base/flex";
@import "base/mixins";


// font
@import "base/font";
// icon
// @import "iconfont/iconfont.scss";
// user theme
// @import "theme/green.scss";
// default
// @import "theme/default.scss";
// retailer themes
@import "theme/header";

@import "theme/lark";

// selection
@import "theme/selection";

@import "theme/high";

// empty
%position {
  position: absolute; 
  top: 0;
  right: 0;
  left: 0;
}
// fixed
%positionFixed {
  position: fixed;
}

// 常用 extend end

.lhead {
  display: flex;
  padding: 12px 16px;
  justify-content: space-between;
  align-items: center;
  // border-top: 1px solid #e8e8e8;
  a {
    color: #8c8c8c;
  }
}
.side {
  padding: 10px;
  .lhead {
    padding: 5px 5px;
  }
  .list-group-item {
    @extend .multLine;
    max-height: 68px;
  }
}
//--

//recommendRow
.recommend-main {
  width: 100%;
  padding-top: 20px;
}

// footer
.footer {
  background: #fafafa;
}

.footer-full {
  background: #f5f6f7;
}

.footer-h5 .footer-container {
  padding-top: 16px;
}

.footer-h5 .footer-container .slogan {
  border-bottom: none;
  height: 44px;
}

.footer-container {
  text-align: center;
}

.footer-container .links,
.footer-container .slogan {
  max-width: 470px;
  margin: 0 auto;
}

.footer-container .slogan {
  border-bottom: 1px solid #e8e8e8;
  font-size: 14px;
  padding: 16px 0 6px;
  line-height: 22px;
  color: #595959;
  height: 45px;
}

.footer-container .slogan svg {
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 1px;
}

.footer-container .links {
  padding: 6px 0 16px;
  line-height: 22px;
  font-size: 14px;
}

.footer-container .links a {
  display: inline-block;
  margin: 0 8px;
  color: #8c8c8c;
}

.footer-container .links a:hover {
  color: #595959;
}

.footer-container .links a.link-primary {
  color: #25b864;
}

.footer-container .links a.link-primary:hover {
  color: #25b864;
}

.footer-container .split {
  display: inline-block;
  width: 1px;
  height: 14px;
  vertical-align: middle;
  margin: 0 8px 3px;
  background-color: #e8e8e8;
}

.footer-container .copyright {
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: #8c8c8c;
  padding-bottom: 12px;
}

.footer-mini {
  padding: 10px;
  line-height: 36px;
}

.footer-mini .links a {
  color: #8c8c8c;
}

// footer
.popover {
  display: inline-block;
}

// common
#app {
  @include fontDpr(13px);
  color: $txtColor;
}

// home
.ant-list-items {
  margin: 0;
  padding: 0;
  list-style: none;

  & > li {
    padding: 2px;

    .docItem {
      color: #8c8c8c;
      padding: 16px;
      position: relative;
    }

    .docItem:after {
      content: " ";
      display: block;
      clear: both;
    }

    .content {
      overflow: hidden;
      display: block;
      margin-left: 60px;
    }

    .description {
      color: #8c8c8c;
      margin-top: 12px;
      display: -webkit-box;
      max-height: 63px;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 21px;
    }

    .title {
      color: #262626;
      font-weight: 600;
      font-size: 16px;
    }

    .cover {
      float: right;
      background-size: cover;
      background-position: 50%;
      width: 160px;
      height: 100px;
      border-radius: 2px;
      margin-left: 24px;
    }

    .docMeta {
      margin-top: 16px;
      margin-left: 60px;
      font-size: 12px;
      white-space: nowrap;
      overflow: hidden;
    }

    .docMeta a {
      color: #595959;
      display: inline-block;
      margin: 0 4px;
      max-width: 30%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      vertical-align: bottom;
    }

    .docMeta a:first-child {
      margin-left: 0;
    }

    .docMeta .datetime {
      display: inline-block;
      margin-left: 8px;
    }

    .likes {
      float: left;
      position: relative;
      left: 0;
      bottom: 0;
      width: 42px;
      height: 42px;
      padding: 18px 0 0;
      text-align: center;
      background: #fafafa;
    }
  }
  li + li {
    border-top: 1px solid #e8e8e8;
  }
}

.loadMore,
.list-load-more {
  background: -webkit-linear-gradient(#fff, #f5f5f5);
  background: linear-gradient(#fff, #f5f5f5);
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  text-align: center;
  height: 40px;
  line-height: 40px;
  margin: 24px;
}

@import "theme/article";

// add side wrapper

.swrapper {
  width: 100%;
  min-height: 100vh;
  background: #fff;
}

.cwrapper {
  position: relative;
  padding-top: 60px;
  display: flex;
  align-items: stretch;
}

.asideWrapper {
  position: relative;
  flex: 0 0 auto;
  width: calc((100% - 1400px) / 2 + 250px);
  min-width: 250px;
  min-height: 100vh;
  padding-left: calc((100% - 1400px) / 2);
  font-size: 14px;
  background-color: #fafafa;
}
.mainContent {
  flex: auto;
  display: flex;
  flex-direction: column;
  width: calc(100% - 250px);
  padding-left: 36px;
  .content {
    max-width: 1114px;
  }
}

// 侧边目录
.asideCatalog {
  width: 250px;
  padding: 32px 24px;
  height: calc(100vh - 60px);
  overflow: hidden;
  border-right: 1px solid #e8e8e8;
}

.asideFixed {
  @extend %positionFixed;
  top: 60px;
  left: auto;
}

.book-catalog {
}
.catalog {
  .catalog-folder {
    display: block;
    position: absolute;
    width: 24px;
    height: 24px;
    top: 1px;
    left: -24px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    color: #999;
    line-height: 24px;
  }
  .catalog-folder:hover {
    color: #8c8c8c;
  }
  .catalog-item {
    color: #595959;
    font-size: 12px;
    line-height: 26px;
    padding: 1px 0;
    display: block;
    .name {
      position: relative;
      display: block;
    }
    .name-link,
    a {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      padding-top: 0;
      padding-bottom: 0;
      color: #595959;
      &:hover {
        color: #8c8c8c;
      }
      &.active {
        color: #25b864;
      }
    }
    &.catalog-item-active a {
      color: #25b864;
    }
  }
  .catalog-item-1 {
    .name {
      font-weight: 400;
    }
  }

  @for $i from 2 through 10 {
    .catalog-item-#{$i} {
      padding-left: 1em * $i;
    }
  }
}

.hrline {
  width: 100%;
  height: 2px;
  @include clearfix();
}
// -- side extend

.columnsWrapper {
  display: flex;
  justify-content: space-between;
  .article {
    padding: 32px 0;
    flex: auto;
    margin: 0;
  }
}

// tags
.tagWrapper {
  .searchBox {
    width: 100%;
    height: 120px;
  }

  .listWrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: #fff;
    min-height: 60vh;
  }
}
